import { Button,Select, message, Popconfirm } from 'antd';
import axios from '../../axios';

function Goodstype() {
    const confirm = async (id) => {
        let res = await axios.get("地址", {
            params: {
                id,
                temp: new Date().getTime(),

            }
        })

        //    getList()
    };
const handleChange=(e)=>{
     console.log(e);
}
    return (
        <div>
            商品分类
            <img style={{ width: "100px", height: "100px" }}
             src="https://javacrmebdan.oss-cn-hangzhou.aliyuncs.com//crmebimage/public/maintain/2021/12/25/37901b98fba74345ad0e8a575999ad09n9d3winw2c.jpg" alt="" />

            <Popconfirm
                description="是否要删除该条数据?"
                onConfirm={() => confirm(100)}
            >
                <Button danger>Delete</Button>
            </Popconfirm>

            <Select
                defaultValue={-1}
                onChange={handleChange}
                options={[
                    {
                        value: -1,
                        label: '全部',
                    },
                    {
                        value: 1,
                        label: '显示',
                    },
                    {
                        value: 0,
                        label: '隐藏',
                    }
                ]}
            />
        </div>
    );
}

export default Goodstype;